using QFramework;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace PlatformShoot
{
    public class NextLevel : PlatformShootGameController
    {
        // Start is called before the first frame update
        void Start()
        {
            gameObject.SetActive(false);
            this.RegisterEvent<ShowPassDoorEvent>(OnCanGamePass)
                .UnRegisterWhenGameObjectDestroyed(gameObject);
        }

        private void OnCanGamePass(ShowPassDoorEvent e)
        {
            gameObject.SetActive(true);
        }

        // Update is called once per frame
        void Update()
        {

        }
        //IArchitecture IBelongToArchitecture.GetArchitecture()
        //{
        //    return PlatformShootGame.Interface;
        //}
    }
}

